export const CODE = {
  SUCCESS: 200,
  REFRESH_TOKEN: 401,
  NO_AUTH: 403,
  FAIL: 500
}

export const COOKIE_LIST = {
  AUTHORIZATION: 'Authorization',
  MENU: 'menu',
  UNIT: 'unit',
  ROLE: 'role',
  NAVIGATION: 'navigation'
}

export const SEPARATOR = '&'

export const FIRST_PAGE = 1

// 阿里云服务器远程地址
export const SERVER_URL = 'https://39.98.94.7:8090/api'

export const UNIT_TYPE = {
  LENGTH_AND_WIDTH: '深度/长度',
  DIAMETER_UNIT: '直径单位',
  BOREHOLE_VOLUME: '井眼容积'
}

export const DEFAULT_PAGE_SIZE = 25

// 导航栏数据在这里配置 - 根据权限设置
// 管理员
export const NAVIGATION_DATA_ADMIN = [
  {
    index: 'dashboard',
    icon: 'el-icon-s-marketing',
    name: '数据概览',
  },
  {
    index: 'wellManagement',
    icon: 'el-icon-s-home',
    name: '井眼管理'
  },
  {
    index: "dataValidate",
    icon: "el-icon-view",
    name: "数据校验"
  },
  {
    index: 'data_classification',
    icon: 'el-icon-s-grid',
    name: '数据浏览',
  },
  {
    index: 'data_documents',
    icon: 'el-icon-folder-opened',
    name: '文件浏览',

  },
  {
    index: 'wellQuery',
    icon: 'el-icon-search',
    name: '数据查询'
  },
  {
    index: "person-center",
    icon: "el-icon-user-solid",
    name: "个人中心",
    child: [
      {
        index: "myinput",
        icon: "el-icon-location",
        name: "我录入的数据"
      },
      {
        index: "myvalidate",
        icon: "el-icon-location",
        name: "我审核的数据"
      }
    ]
  },
  {
    index: 'data-analyse',
    icon: 'el-icon-s-data',
    name: '数据分析',
    child: [
      {
        index: 'workNumAnalysis',
        name: '作业量分析'
      },
      {
        index: 'workWellAnalysis',
        name: '作业井统计'
      },
      // {
      //   index: 'wellAnalysis',
      //   name: '作业井分析'
      // },
      // {
      //   index: 'qualityAnalysis',
      //   name: '固井质量分析'
      // },
    ]
  },
  {
    index: 'data-management',
    icon: 'el-icon-setting',
    name: '系统管理',
    child: [
      {
        index: 'data_dict',
        icon: 'el-icon-location',
        name: '数据字典'
      },
      {
        index: 'Organization',
        icon: 'el-icon-location',
        name: '组织机构'
      },
      {
        index: 'user_management',
        icon: 'el-icon-location',
        name: '用户管理'
      },
      {
        index: 'role_authorize',
        icon: 'el-icon-location',
        name: '角色授权'
      },
      {
        index: 'role_management',
        icon: 'el-icon-location',
        name: '角色管理'
      },
      
            // ,
      // {
      //   index: 'staff_management',
      //   icon: 'el-icon-location',
      //   name: '员工管理'
      // }
    ]
  }

  // ,
  // {
  //   index: 'data-check',
  //   icon: 'el-icon-check',
  //   name: '数据审核',
  //   child: [
  //     {
  //       index: '',
  //       name: '数据审核'
  //     },
  //     {
  //       index: '',
  //       name: '数据记录'
  //     },
  //   ]
  // }
]
// 检查人员
export const NAVIGATION_DATA_CHECK = [
  {
    index: 'dashboard',
    icon: 'el-icon-s-marketing',
    name: '数据概览',
  },
  {
    index: "dataValidate",
    icon: "el-icon-view",
    name: "数据校验"
  },
  {
    index: 'data_documents',
    icon: 'el-icon-folder-opened',
    name: '文件浏览',

  },
  {
    index: 'wellQuery',
    icon: 'el-icon-search',
    name: '数据查询'
  },
  {
    index: "person-center",
    icon: "el-icon-user-solid",
    name: "个人中心",
    child: [
      {
        index: "myinput",
        icon: "el-icon-location",
        name: "我录入的数据"
      },
      {
        index: "myvalidate",
        icon: "el-icon-location",
        name: "我审核的数据"
      }
    ]
  }
]
// 工程师
export const NAVIGATION_DATA_ENGINER = [
  {
    index: 'dashboard',
    icon: 'el-icon-s-marketing',
    name: '数据概览',
  },
  {
    index: 'data_documents',
    icon: 'el-icon-folder-opened',
    name: '文件浏览',

  },
  {
    index: 'wellQuery',
    icon: 'el-icon-search',
    name: '数据查询'
  },
  {
    index: "person-center",
    icon: "el-icon-user-solid",
    name: "个人中心",
    child: [
      {
        index: "myinput",
        icon: "el-icon-location",
        name: "我录入的数据"
      }
    ]
  }
]


export const BOREHOLE_TITLE = [
  {
    prop: 'wellName',
    label: '井名',
    width: 200
  },
  {
    prop: 'wellType',
    label: '井别',
    width: 200,
    type: 'select',
    select: []
  },
  {
    prop: 'wellCategory',
    label: '井型',
    width: 200,
    type: 'select',
    select: []
  },
  {
    prop: 'nationality',
    label: '国别',
    width: 200,
    type: 'select',
    select: []
  },
  {
    prop: 'block',
    label: '区块',
    width: 200
  },
  {
    prop: 'coordX',
    label: '井位坐标X',
    width: 200
  },
  {
    prop: 'coordY',
    label: '井位坐标Y',
    width: 200
  },
  {
    prop: 'longitude',
    label: '经线坐标',
    width: 200
  },
  {
    prop: 'latitude',
    label: '纬线坐标',
    width: 200
  }
]

export const EXPAND_BOREHOLE_TITLE = [
  {
    prop: 'geographicalLocation',
    label: '地理位置',
    width: 200
  },
  {
    prop: 'structureLocation',
    label: '构造位置',
    width: 200
  },
  {
    prop: 'lineLocation',
    label: '测线位置',
    width: 200
  },
  {
    prop: 'zeroLocation',
    label: '深度零点',
    width: 200
  },
  {
    prop: 'turnPlate',
    label: '转盘高度',
    width: 200,
    unit: 'LENGTH_AND_WIDTH'
  },
  {
    prop: 'waterDepth',
    label: '水深',
    width: 200,
    unit: 'LENGTH_AND_WIDTH'
  },
  {
    prop: 'drillingStratum',
    label: '完钻层位',
    width: 200
  },
  {
    prop: 'mainObjStratum',
    label: '主要目的层',
    width: 200
  },
  {
    prop: 'drillingPrinciple',
    label: '完钻原则',
    width: 200
  },
  {
    prop: 'platform',
    label: '施工平台',
    width: 200
  },
  {
    prop: 'beginDrillDate',
    label: '开钻时间',
    width: 200,
    type: 'date'
  },
  {
    prop: 'endDrillDate',
    label: '完钻时间',
    width: 200,
    type: 'date'
  },
  {
    prop: 'errorInfo',
    label: '异常原因',
    width: 200
  }
]

export const USER_SEARCH_DATA = [
  {
    type: 'select',
    label: '姓名',
    model: 'name',
    placeholder: '姓名',
    select: [],
    api: true
  },
  {
    type: 'select',
    label: '性别',
    model: 'man',
    placeholder: '性别',
    select: []
  },
  {
    type: 'select',
    label: '权限',
    model: 'roles',
    placeholder: '权限',
    select: []
  }
]

export const BOREHOLE_SEARCH_DATA = [
  {
    type: 'select',
    label: '井名',
    model: 'wellName',
    placeholder: '井名',
    select: [],
    api: true
  },
  {
    type: 'select',
    label: '井型',
    model: 'wellCategory',
    placeholder: '井型',
    select: []
  },
  {
    type: 'select',
    label: '井别',
    model: 'wellType',
    placeholder: '井别',
    select: []
  },
  {
    type: 'date',
    label: '开钻日期',
    model: 'drillDate'
  }
]

export const STRATUM_TITLE = [
  {
    prop: 'id',
    label: '地层标识',
    width: 200
  },
  {
    prop: 'system',
    label: '系',
    width: 200
  },
  {
    prop: 'series',
    label: '统',
    width: 200
  },
  {
    prop: 'formation',
    label: '组',
    width: 200
  },
  {
    prop: 'member',
    label: '段',
    width: 200
  },
  {
    prop: 'depth',
    label: '底深',
    width: 200
  },
  {
    prop: 'thickness',
    label: '厚度',
    width: 200
  },
  {
    prop: 'string',
    label: '岩性',
    width: 200
  }
]

export const EXPAND_STRATUM_TITLE = []

export const BURST_PRESSURE_TITLE = [
  {
    prop: 'id',
    label: '标识',
    width: 200
  },
  {
    prop: 'wellDepth',
    label: '井深',
    width: 200
  },
  {
    prop: 'equivalentDensity',
    label: '破裂压力当量密度',
    width: 200
  },
  {
    prop: 'tvd',
    label: '垂深',
    width: 200
  }
]

export const PORE_PRESSURE_TITLE = [
  {
    prop: 'id',
    label: '标识',
    width: 200
  },
  {
    prop: 'wellDepth',
    label: '井深',
    width: 200
  },
  {
    prop: 'equivalentDensity',
    label: '孔隙压力当量密度',
    width: 300
  },
  {
    prop: 'mudDensity',
    label: '泥浆密度',
    width: 200,
    select: []
  },
  {
    prop: 'tvd',
    label: '垂深',
    width: 200
  }
]

export const WELL_BORE_STRUCTURE_TITLE = [
  {
    prop: 'wellBoreSturctureId',
    label: '井身结构标识',
    width: 200
  },
  {
    prop: 'casingType',
    label: '套管类型',
    width: 200
  },
  {
    prop: 'cemRtnDepth',
    label: '水泥返深',
    width: 200
  },
  {
    prop: 'hoopDepth',
    label: '浮箍下深',
    width: 200
  }
]

export const EXPAND_WELL_BORE_STRUCTURE_TITLE = [
  {
    prop: 'holoSize',
    label: '井眼尺寸',
    width: 200
  },
  {
    prop: 'holoDepth',
    label: '井深',
    width: 200
  },
  {
    prop: 'casingSize',
    label: '套管尺寸',
    width: 200
  },
  {
    prop: 'casingDepth',
    label: '套管下深',
    width: 200
  },
  {
    prop: 'steelGrade',
    label: '钢级',
    width: 200
  },
  {
    prop: 'buckleType',
    label: '扣型',
    width: 200
  }
]

export const USER_TITLE = [
  {
    prop: 'name',
    label: '姓名',
    width: 200
  },
  {
    prop: 'birthDay',
    label: '生日',
    width: 200
  },
  {
    prop: 'man',
    label: '性别',
    width: 200
  },
  {
    prop: 'roles',
    label: '权限',
    width: 200
  },
  {
    prop: 'enable',
    label: '是否启用',
    width: 200
  }
]

export const ADD_TITLE = [
  {
    prop: 'name',
    label: '姓名',
    width: 200
  },
  {
    prop: 'enable',
    label: '是否启用',
    width: 200
  },
  {
    prop: 'birthDay',
    label: '生日',
    width: 200
  },
  {
    prop: 'man',
    label: '性别',
    width: 200
  },
  {
    prop: 'password',
    label: '密码',
    width: 200
  },
  {
    prop: 'roles',
    label: '权限',
    width: 200
  },
  {
    prop: 'username',
    label: '账号',
    width: 200
  }
]
